<script setup>
import {useRouter} from 'vue-router'

const router = useRouter()

if (myApi) {
  myApi.handleGoPage((event, value) => {
    if (value.toString() == '-1') {
      router.go(-1)
    } else {
      router.push(value)
    }
  })
  myApi.handlePageRefresh((event, value) => {
    location.reload()
  })
}


</script>

<template>
  <router-view></router-view>
</template>

<style lang="less">

.size {
  width: 100%;
  height: 100%;
}

#app {
  .size;
}
</style>
